import {
	mapState
} from "vuex"

export default {
	install(Vue) {
		Vue.mixin({
			computed: mapState(['user_info']),
			methods: {
				check_login() {
					if (this.user_info) {
						return true
					}
					uni.navigateTo({
						url: '/pages/auth/login/login'
					})
					return false
				}
			}
		})
	}
}
